home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 1.iso / games / fibsw130.zip / NETCOM.SCC < prev    next >
Text File  |  1994-05-31  |  3KB  |  93 lines

  1. @echo 0 ;%%Netcom hosted connection to FIBS.
  2. @rem ****************************************************************************
  3. @rem ****                                                                   *****
  4. @rem ****     Netcom login Script                                           *****
  5. @rem ****          Assumes that user uses the *default* {NetcomN:N} prompt. *****
  6. @rem ****          and that '}' does not appear in the motd                 *****
  7. @rem ****                                                                   *****
  8. @rem ****************************************************************************
  9.  
  10. @echo "\r\n** Connecting to FIBS via Netcom Host **\r\n"
  11. @board 0
  12.  
  13. @rem *****************************************************
  14. @rem ***  Dial the Telephone Number                     **
  15. @rem *****************************************************
  16.  
  17.  
  18. @rem Execute dial.scr file to dial the telephone number.
  19. <dial.scr
  20.  
  21.  
  22. @rem *****************************************************
  23. @rem ***  Execute the login procedure                   **
  24. @rem *****************************************************
  25.  
  26. @if "%HostLoginName%" != ""
  27. @:RetryLogin
  28. @   if "%NetworkScript%" == "manual.scn"
  29. @       wait "ogin:"   ; If manual network connect, don't prompt or timeout for login
  30. @   else
  31. @       echo "\r\n** Logging in...\r\n"
  32. @       if not @wait "ogin:" 40     ; e.g. "login:", or "Login:" &c.
  33. @           echo "\r\n** Error(netcom.scc): error - Host Login Prompt not received\r\n"
  34. @           send "\r"
  35. @           goto RetryLogin
  36. @       endif
  37. @   endif
  38. @   send "%HostLoginName%\r"
  39. @   if not @wait "\n" 40
  40. @      echo "\r\n** Error(netcom.scc): No response to Host Login Name\r\n"
  41. <
  42. @   endif
  43. @   if "%HostPassword%" != ""
  44. @       if not @wait "assword:" 30  ; e.g. "Password:" or "password:"
  45. @           echo "\r\n** Error(netcom.scc): Host Password prompt not received\r\n"
  46. <
  47. @       endif
  48. @       send "%HostPassword%\r"
  49. @       if not @wait "\n" 40
  50. @           echo "\r\n** Error(netcom.scc): No response to Host Password\r\n"
  51. <
  52. @       endif
  53. @   else
  54. @       rem ** We need to synchronize around the password **
  55. @       echo "\r\n** Automated login script will resume after you enter your password\r\n"
  56. @       if not @wait "assword:" 40
  57. @          echo "\r\n** Error(netcom.scc): Host password prompt not received\r\n"
  58. <
  59. @       endif
  60. @       passwordEntry 1
  61. @       wait "\n" 
  62. @       passwordEntry 0
  63. @   endif ; HostPassword
  64. @else 
  65. @   if "%NetworkScript%" != "manual.scn"  ; No prompts if manual network connect
  66. @       echo "\r\n** Automated login script will resume after login is complete\r\n"
  67. @   endif
  68. @   wait "ogin:"
  69. @   wait "assword:"
  70. @   passwordEntry 1
  71. @   wait "\n"
  72. @   passwordEntry 0
  73. @endif ; HostLoginName
  74.  
  75. @rem *****************************************************
  76. @rem *** Wait for the command shell prompt             ***
  77. @rem *****************************************************
  78.  
  79. @echo "\r\n*** Waiting for shell command prompt...\r\n"
  80. @if not @wait "\r{" 40  ; Wait indefinitely
  81. @   echo "\r\n*** Error(netcom.scc): Command shell prompt not found\r\n"
  82. <
  83. @endif
  84.  
  85.  
  86. @rem *****************************************************
  87. @rem *** Connect via telnet                            ***
  88. @rem *****************************************************
  89.  
  90. <telnet.scr
  91.  
  92.  
  93.